import 'package:easy_refresh/easy_refresh.dart';
import 'package:flutter/material.dart';

class CommonWidget {
  static classicHeader() {
    return ClassicHeader(
      dragText: 'Pull to refresh',
      armedText: 'Release ready',
      readyText: 'Refreshing...',
      processingText: 'Refreshing...',
      processedText: 'Succeeded',
      noMoreText: 'No more',
      failedText: 'Failed',
      messageText: 'Last updated at %T',
      mainAxisAlignment: MainAxisAlignment.end,
    );
  }

  static classicFooter() {
    return ClassicFooter(
      dragText: 'Pull to load',
      armedText: 'Release ready',
      readyText: 'Loading...',
      processingText: 'Loading...',
      processedText: 'Succeeded',
      noMoreText: 'No more',
      failedText: 'Failed',
      messageText: 'Last updated at %T',
      infiniteOffset: null,
    );
  }
}
